import request from '@/utils/request'

const api = {
        apipath: '/param/cssz',
    }
    // 查询
export function getList(params) {
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}
// 查询详情
export function selectOne(unid) {
    return request({
        url: api.apipath + '/' + unid,
        method: 'get'
    })
}
// 修改
export function save(params) {
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}
// 删除
export function deleteOne(params) {
    return request({
        url: api.apipath,
        method: 'delete',
        params: params
    })
}
// 导出
export function exporta(data) {
    return request({
        url: api.apipath + '/export',
        method: 'get',
        params: params
    })
}
//获取机构
export function getOrg() {
    return request({
        url: '/system/org/treeselect',
        method: 'get',
    })
}
//获取人员
export function getPerson() {
    return request({
        url: '/system/person/list',
        method: 'get',
    })
}
